package com.spring.beans.factory;

import com.spring.beans.BeansException;

/**
 * @Author: Asuka
 * @Description:
 * @create: 2025-04-14 00:35
 */

//bean容器
public interface BeanFactory {

    //获得bean bean不存在抛异常
    Object getBean(String name) throws BeansException;

    //根据名称和类型查找bean
    <T> T getBean(String name, Class<T> requiredType) throws BeansException;

    <T> T getBean(Class<T> requiredType) throws BeansException;

    //判断bean是否存在
    boolean containsBean(String name);

}
